{% extends 'base/base.html' %}
{% block title %}用户详情{% endblock %}
{% block css %}
<link href="/static/vendors/datatables.net-bs/css/dataTables.bootstrap.min.css" rel="stylesheet">
{% endblock %}
{% block content %}
<div class="right_col" role="main">
    <div class="">
        <div class="clearfix"></div>

        <div class="row">
            <div class="col-md-12 col-sm-12 col-xs-12">
                <div class="x_panel">
                    <div class="x_title">
                        <h2>用户详情 <small>|&nbsp;<a href="{% url 'user_list' %}">返回</a></small></h2>
                        <div class="clearfix"></div>
                    </div>
                    <div class="x_content">

                        <table id="datatable" class="table table-striped table-bordered">
                            <thead>
                                {% for i in user_detail %}
                                <tr>
                                    <th>用户名称</th>
                                    <td>{{ i.username }}</td>
                                </tr>
                                <tr>
                                    <th>邮件</th>
                                    <td>{{ i.email }}</td>
                                </tr>
                                <tr>
                                    <th>角色</th>
                                    <td>{{ i.identity }}</td>
                                </tr>
                                <tr>
                                    <th>手机号码</th>
                                    <td>{{ i.mobile_phone }}</td>
                                </tr>
                                <tr>
                                    <th>创建日期</th>
                                    <td>{{ i.date_joined|date:'Y-m-d h:m:s' }}</td>
                                </tr>
                                {% endfor %}
                            </thead>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %}
{% block js %}
    <script src="/static/vendors/datatables.net-bs/js/dataTables.bootstrap.min.js"></script>
{% endblock %}
